﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;

namespace Meow
{
    public class Verb_Properties_ShotGun : VerbProperties
    {
        public int pelletCount = 1;
    }

    public class Verb_Shoot_ShotGun : Verb_Shoot
    {
        protected override bool TryCastShot()
        {
            bool flag = base.TryCastShot();
            Verb_Properties_ShotGun verb_Properties_ShotGun = (Verb_Properties_ShotGun)verbProps;
            if (flag && verb_Properties_ShotGun.pelletCount - 1 > 0)
            {
                for (int i = 1; i < verb_Properties_ShotGun.pelletCount; i++)
                {
                    base.TryCastShot();
                }
            }

            return flag;
        }
    }
}
